<template>
  <div>
    <index ref="indexRef" :topic="{ id: id }" />
  </div>
</template>

<script setup lang="ts">
import index from '@/pages/index.vue'
import { onLoad, onPullDownRefresh } from '@dcloudio/uni-app'
const indexRef = ref<any>('')
const id = ref('')
onPullDownRefresh(() => {
  indexRef.value?.init()
  setTimeout(() => {
    uni.stopPullDownRefresh()
  }, 1000)
})

onLoad((options: any) => {
  id.value = options.id
})
</script>

<style scoped></style>
